//
//  UILabel+category.swift
//  JKWeiBo
//
//  Created by 王冲 on 2017/12/16.
//  Copyright © 2017年 希爱欧科技有限公司. All rights reserved.
//

import UIKit

extension UILabel{
   
    
    class func createlabel(color: UIColor ,fontSize: CGFloat)-> UILabel {
        
        let label  = UILabel()
        label.textColor = color
        label.font = UIFont.systemFont(ofSize: fontSize)
        return label
        
    }
    /**
        2.加号发微博创建label
     */
    class func cerateLabelAddTittle(tittle: String,clolor: UIColor ,y: CGFloat,fontSize: CGFloat) -> UILabel {
        
        let tittleLabrl2 = UILabel(frame: CGRect(x: 0, y: y, width: 100, height: fontSize+2))
        tittleLabrl2.text = tittle
        tittleLabrl2.textColor = clolor
        tittleLabrl2.textAlignment = NSTextAlignment.center
        tittleLabrl2.font = UIFont.systemFont(ofSize: fontSize)
        return tittleLabrl2
        
    }
    
}
